<script type="text/javascript" src="<?php echo SKIN_PATH;?>/js/dangdang.js" ></script>

    <script type=text/javascript>
             document.lanterninfo=function(){
             Lanterninfo=new Array();
             Lanterninfo=[       
<?php if(is_array($datalist)) { foreach($datalist as $key => $value) { ?>
<?php if($key) { ?>,<?php } ?>
['<?php echo $value['ad_file'];?>','<?php echo $value['ad_content'];?>','<?php echo $value['ad_url'];?>']
<?php } } ?>
               ];
               
               return Lanterninfo;
           } 
           Lantern.info=new Array();
           Lantern.info=document.lanterninfo();
           Lantern.init();
</script>